<!DOCTYPE html>
<html lang="en" style="background: #f7f7f7">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title>订单详情</title>
    <script src="__WECHAT__/js/jquery.min.js"></script>
    <script src="__WECHAT__/js/public.js"></script>
    <script src="__WECHAT__/js/mui.min.js"></script>
    <link rel="stylesheet" href="__WECHAT__/css/mui.min.css">
    <link rel="stylesheet" href="__WECHAT__/css/style.css">
</head>
<body >
<div class="ddxq_con">
<div class="basic">
    <div class="inner">
        <a href="{:url('wechat/Member/detail')}?id={$order.member_id}">
    <img src="{$order.member.headpic}">
    <div class="info">
        <h1>{$order.member_name}</h1>
        <p>服务类型：{$order.service_text}</p>
        <p>店员等级：{$order.member.level_text}</p>
    </div>
        </a>
        <div class="clear"></div>
    </div>
</div>
    <div class="xqbq">
        <img src="__WECHAT__/images/xq_bq.png"  />
    </div>

    <div class="xq_box">
        <div class="inner">
        <div class="part1">
            服务内容：{$order.item_name}<br/>
            微信号：{$order.user_contact}<br/>
            备注：{$order.user_message}
        </div>
            <div class="part1">
                所属类目：{$order.service_text}<br/>
                服务客服：{$order.customer_service}<br/>
                <p class="hj">
                    合计：  <span> ¥ {$order.money}</span>
                </p>
            </div>
            <div class="part1" style="border-bottom:none">
                <div class="btn_fz">复制</div>
                订单编号：{$order.order_num}<br/>
                创建时间：{$order.create_time}<br/>
                订单状态：{$order.status_text}
            </div>

        </div>
    </div>

    <div class="clear"></div>
</div>
<div class="bottom_box">
    <div class="btn blue review_btn">评价</div>
    <div class="btn" onclick="window.location.href='{:url('wechat/Order/tipPay')}?id={$order.member_id}'">打赏</div>
</div>
<script src="__WECHAT__/vendors/layer/layer.js"></script>
<script type="text/javascript" charset="utf-8">
    var order_status = '{$order.status}';
    var review_url = '{:url('wechat/Order/review')}';
    $('.review_btn').click(function () {
        if(order_status == 3){
            window.location.href= review_url + '?id={$order.id}';
        }else{
            layer.open({
                content:'当前订单未完成，无法评价',
                skin: 'msg',
                time: 2
            });
        }
    });

</script>
</body>
</html>